class User < ActiveRecord::Base
  has_many :lists, :dependent => :destroy
  
  validates_uniqueness_of :email
  
  def self.authenticate(email, password)
    self.find(:first, :conditions => {:email => email, :password => password})
  end
end
